<template>
    <h3>Main</h3>
    <p>搜索内容为：{{search}}</p>
    <SearchComp @searchEvent="searchEventHandle" />
</template>

<script>
import SearchComp from '../components/SearchComp.vue'
export default {
    data() {
        return {
            search: ''
        }
    },
    components: {
        SearchComp
    },
    methods: {
        searchEventHandle(data) {
            this.search = data
        }
    }
}
</script>